package com.aaa.service.impl;


import com.aaa.dao.UserMapper;
import com.aaa.entity.User;
import com.aaa.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl  extends ServiceImpl<UserMapper, User> implements UserService {
    @Resource
    UserMapper userMapper;
    @Override
    public List<User> select() {
        return userMapper.select();
    }

    @Override
    public List<User> select2(String username) {
        return userMapper.select2(username);
    }

//    @Override
//    public int update2(User user) {
//        return userMapper.updateById(user);
//    }
}
